package delasell.adressBook.model;

import java.util.ArrayList;
import java.util.Enumeration;
import java.util.HashMap;

public class ContactList {
	
	protected HashMap<String, Contact> list;
	
	public ContactList()
	{
		list = new HashMap<String, Contact>();
	}
	
	public void addContact(String n, String fn, String ad, String cAd, String persPhone1, String persPhone2, String compPhone1, String compPhone2, String w, String em, String img)
	{
		Contact cont = new Contact();
		cont.setContact(n, fn, ad, cAd, persPhone1, persPhone2, compPhone1, compPhone2, w, em, img);
		
		StringBuilder key = new StringBuilder(n);
		key.append(fn);
		
		list.put(key.toString(),cont);
	}
	
	public HashMap<String, Contact> getList()
	{
		
		return this.list;
	}
	

}
